<?php
/**
 * User: yangy
 * Date: 2021/4/16
 * Time: 15:15
 * Describe:
 */

include("../Lib/index.php");

$db = Db::getObject(Config::getconfig("DB"), "default");

$sql = "SELECT 1";

$ecp_data = $db->query($sql);
if ($ecp_data[0][1] === "1") {
    echo 1;
} else {
    $db_error = $db->getError();
    echo $db_error;
}
$db->free();
$db->close();
